package com.sander.guardmanagement.response;

import android.text.TextUtils;

/**
 * Created by sander on 2017/4/25.
 */

public class ResponseHomeGetRentListData {
    public int id;
    public String user_name;
    public String phone;
    public int age;
    public int gender;
    public String xueli;
    public int marry;
    public int status;

    public String num_password;

    public int user_room_id;

    public int city_id;
    public String city_name;
    public int community_id;
    public String community_name;
    public int son_community_id;
    public String sub_community_name;
    public int building_id;
    public String build_name;
    public int room_id;
    public String room_name;
    public int user_id;
    public String createTime;

    public String getuserInfo(){

        if (user_name == null) user_name = "";
//        if (TextUtils.isEmpty(username)) username = "";

        String age_string = "";
        if (age == 0){

        }else{
            age_string = age + "岁";
        }
        String gender_string = "";
        if (gender == 0) {
            gender_string = "男";
        }else{
            gender_string = "女";
        }
        if (TextUtils.isEmpty(phone)) phone = "";
        if (TextUtils.isEmpty(num_password))num_password = "";

        String title = user_name + " " + gender_string  + " " + age_string + "\n" + phone;
        return title;
    }


}
